public class Demo16 {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("beg: " + System.currentTimeMillis());
        Thread.sleep(1000);
        System.out.println("end: " + System.currentTimeMillis());
    }
}